package shadow.hsl.androidxexec

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import shadow.hsl.androidxexec.db.BaseDao
import shadow.hsl.androidxexec.db.IBaseDao
import shadow.hsl.androidxexec.update.UpdataManager

class MainActivity : AppCompatActivity() {

    var updataManager: UpdataManager? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        updataManager = UpdataManager()
    }

    fun createDb(view: View) {
        val iBaseDao = BaseDao<String>()
        show(iBaseDao.insert("111").toString())
    }

    fun show(text: String) {
        Toast.makeText(this, text, Toast.LENGTH_SHORT).show()
    }
}
